package com.zan.pattern.responsibility;

/**
 * @Author Zan
 * @Create 2024/4/27 11:10
 * @Description : 总经理
 * @ClassName: DeputyGeneralManager
 */
public class GeneralManager extends Handler {

    public GeneralManager() {
        // 设置能处理的请假天数
        super(Handler.NUM_THREE, Handler.NUM_SEVEN);
    }

    @Override
    protected void handlerLeave(LeaveRequest request) {
        System.out.println(request.getName() + "请假" + request.getNum() + "天，" + request.getContent());
        System.out.println("总经理审批：同意");
    }
}
